<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	request.setCharacterEncoding("UTF-8");
	String memberId = (String)request.getAttribute("memberId");
	System.out.println("memeberId3" + memberId);
	String userId = (String)request.getAttribute("userId");
	String userName = (String)request.getAttribute("userName");
	String mailTitle = (String)request.getAttribute("mailTitle");
	String mailText = (String)request.getAttribute("mailText");
	String type = (String)request.getAttribute("type");
	System.out.println("type=" + type);

%>
<jsp:include page="/share/layout.jsp" flush="true">
    <jsp:param name="title" value="メール送信画面"/>
    <jsp:param name="css" value="member.css"/>
    <jsp:param name="content">
        <jsp:attribute name="value">
<!-- contents start -->
	<form action="/Books/member/MailSendServlet">
		<table class="form_table">
			<tr>
				<th>To（ユーザID）</th>
				<td><%= userId %><input type="hidden" name="userId" value="<%= userId %>"  readonly /></td>
			</tr>
			<tr>
				<th>件　名</th>
				<td><%= mailTitle %><input type="hidden" size="92" name="mailTitle" value="<%= mailTitle %>"  readonly  /></td>
			</tr>
			<tr>
				<td colspan="2" align="left">
					<textarea name="mailText"  cols="105" rows="18" readonly><%= mailText %>
					</textarea>
				</td>
			</tr>
		</table>
			<div id="button">
			    <input class="button" type="submit" value="送信" />
			 	<input type="button" value="修正" class="button" style="cursor:pointer" onClick="history.back(); return false;">
			 	<input type="hidden" name="id" value="<%=memberId %>"/>
			 	<input type="hidden" name="type" value="<%= type %>"/>
			 	<%System.out.println("memeberId4" + memberId); %>
			 </div>
	</form>

<!-- contents end -->
        </jsp:attribute>
    </jsp:param>
</jsp:include>

